package com.scheduling.product.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 工艺路线数据传输对象
 *
 * @author 开发团队
 * @since 2025-05-29
 */
@Data
@Schema(description = "工艺路线信息")
public class ProcessRouteDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "工艺路线ID")
    private String routeId;

    @Schema(description = "产品ID", required = true)
    @NotBlank(message = "产品ID不能为空")
    private String productId;

    @Schema(description = "工艺路线名称", required = true)
    @NotBlank(message = "工艺路线名称不能为空")
    private String routeName;

    @Schema(description = "产品名称")
    private String productName;

    @Schema(description = "工序列表")
    private List<OperationDTO> operations;
} 